package com.github.winyiwin;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@ConfigurationProperties(prefix = "spring.kobe")
public class KobeThreadPoolProperties {
    private String threadNamePrefix = "mamba-";

    private List<ThreadPoolDefinition> threadPools;

    public String getThreadNamePrefix() {
        return threadNamePrefix;
    }

    public void setThreadNamePrefix(String threadNamePrefix) {
        this.threadNamePrefix = threadNamePrefix;
    }

    public List<ThreadPoolDefinition> getThreadPools() {
        return threadPools;
    }

    public void setThreadPools(List<ThreadPoolDefinition> threadPools) {
        this.threadPools = threadPools;
    }
}
